package 桥接模式;

public class 桥接模式 {
    public static void main(String[] args) {

        Color red=new Red();
        Color blue=new Blue();

        Shape redCircle=new Circle(red);
        Shape blueSquare=new Square(blue);
        Shape blueCircle=new Circle(blue);
        Shape redSquare=new Square(red);
        redCircle.draw();
        blueSquare.draw();
        blueCircle.draw();
        redSquare.draw();
    }
}
